home *** CD-ROM | disk | FTP | other *** search
/ This Disc Bytes! / Power Computing - The Disc 2 - This Disc Bytes.ISO / mac / CodeWarrior 7 Lite for 68K / MacOS Support / Headers / ANSI Headers / SIOUX.h < prev    next >
Text File  |  1995-08-02  |  2KB  |  76 lines

  1. /*
  2.  *    File:        SIOUX.h
  3.  *                ©1993-1995 metrowerks Inc. All rights reserved
  4.  *    Author:        Berardino E. Baratta
  5.  *
  6.  *    Content:    Interface file for SIOUX, containing all accessible entries ...
  7.  *
  8.  */
  9.  
  10. #ifndef __SIOUX__
  11. #define __SIOUX__
  12.  
  13. #pragma options align=mac68k
  14. #pragma direct_destruction off
  15.  
  16. /*
  17.  *    Structure for holding the SIOUX specific settings ...
  18.  *    default values are:
  19.  *        {TRUE, TRUE, TRUE, FALSE, TRUE, FALSE, 4, 80, 24, 0, 0, monaco, 9, normal};
  20.  */
  21.  
  22. typedef struct tSIOUXSettings {
  23.     char             initializeTB,            /* Do we initialize the ToolBox ... */
  24.                     standalone,                /* Is SIOUX running in standalone mode ... */
  25.                     setupmenus,                /* Do we draw the SIOUX menus ... */
  26.                     autocloseonquit,        /* Do we close the SIOUX window on program termination ... */
  27.                     asktosaveonclose,        /* Do we offer to save on a close ... */
  28.                     showstatusline;            /* Do we draw the status line ... */
  29.  
  30.     short            tabspaces,                /* if non-zero, replace tabs with 'tabspaces' spaces ... */
  31.                     columns, rows,            /* The initial size of the SIOUX window ... */
  32.                     toppixel, leftpixel,    /* The topleft window position (in pixels) ... */
  33.                                             /*     (0,0 centers on main screen) ... */
  34.                     fontid, fontsize,
  35.                     fontface;                /* SIOUX's font, size and textface (i.e. bold, etc...) ... */
  36. } tSIOUXSettings;
  37.  
  38. extern tSIOUXSettings    SIOUXSettings;        /* SIOUX's settings structure ... */
  39.  
  40. #ifdef __cplusplus
  41. extern "C" {
  42. #endif
  43.  
  44. /*
  45.  *    extern short SIOUXHandleOneEvent(EventRecord *initialevent);
  46.  *
  47.  *    Tells SIOUX to handle one event.  If initialevent is NULL, then SIOUX
  48.  *    will poll the eventqueue for an event.  For applications which wish to
  49.  *    use an embedded SIOUX window, call this function at the beginning of
  50.  *    your eventloop, and pass it your current event ...
  51.  *
  52.  *    EventRecord *userevent:    The user's event from their call to Get/WaitNextEvent.
  53.  *    returns short:            Was the event handled by SIOUX?
  54.  */
  55.  
  56. extern short SIOUXHandleOneEvent(struct EventRecord *userevent);
  57.  
  58. /*
  59.  *    extern void SIOUXSetTitle(unsigned char title[256]);
  60.  *
  61.  *    Change the SIOUX window's title ...
  62.  *
  63.  *    unsigned char title[256]:    contains a pascal string.
  64.  */
  65.  
  66. extern void SIOUXSetTitle(unsigned char title[256]);
  67.  
  68. #ifdef __cplusplus
  69. }
  70. #endif
  71.  
  72. #pragma options align=reset
  73. #pragma direct_destruction reset
  74.  
  75. #endif
  76.